/**
 * Copyright (C), 2015-2018, XXX有限公司
 * FileName: RegService
 * Author:   臧浩鹏
 * Date:     2018/7/18 8:27
 * Description: IRegServicfe接口的实现类
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.play.service;

import com.play.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 〈一句话功能简述〉<br> 
 * 〈IRegServicfe接口的实现类〉
 *
 * @author 臧浩鹏
 * @create 2018/7/18
 * @since 1.0.0
 */
@Service
public class RegService implements IRegService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public boolean regUser(String Uid, String UName) {
        boolean b;
        try {
             b = userMapper.insertStudent(Uid, UName);
        }catch (Exception e){
            return false;
        }
        return b;
    }
}
